<form action="/" method="post">
  <h2 mat-dialog-title>{{title}}</h2>
  <div mat-dialog-content>
    <mat-form-field class="full-width">
      <input type="text" matInput name="任务详情" value="" placeholder="任务详情" />
    </mat-form-field>
    <mat-radio-group class="full-width">
      <mat-radio-button *ngFor="let priority of priorities" [value]="priority.value">{{priority.label}}</mat-radio-button>
    </mat-radio-group>
    <mat-form-field class="full-width">
      <input type="text" matInput [matDatepicker]="dueDatepicker" placeholder="截止日期" />
      <mat-datepicker-toggle type="button" matSuffix [for]="dueDatepicker"></mat-datepicker-toggle>
    </mat-form-field>
    <mat-datepicker #dueDatepicker="matDatepicker"></mat-datepicker>
    <mat-form-field class="full-width">
      <input type="text" matInput [matDatepicker]="reminderDatepicker" placeholder="提醒日期" />
      <mat-datepicker-toggle type="button" matSuffix [for]="reminderDatepicker"></mat-datepicker-toggle>
    </mat-form-field>
    <mat-datepicker #reminderDatepicker="matDatepicker"></mat-datepicker>
  </div>
  <div mat-dialog-actions>
    <button type="button" mat-raised-button color="primary">确定</button>
    <button type="button" mat-button mat-dialog-close>关闭</button>
  </div>
</form>
